// pages/medical-record-delivery/payment-success.js
Page({
	data: {
		paymentAmount: '6000.00'
	},

	onLoad(options) {
		console.log('支付成功页面加载')
		// 获取支付金额
		const formData = wx.getStorageSync('medicalRecordFormData')
		if (formData && formData.totalAmount) {
			this.setData({
				paymentAmount: formData.totalAmount
			})
		}
	},

	// 完成
	complete() {
		// 清除本地存储的数据
		wx.removeStorageSync('medicalRecordFormData')
		
		// 返回首页
		wx.reLaunch({
			url: '/pages/index/index'
		})
	}
})
 